Technical Report: Region and Effect Inference for Safe Parallelism
نویسندگان
چکیده
In this paper, we present the first full regions-and-effects inference algorithm for explicitly parallel fork-joinprograms. We infer annotations inspired by Deterministic ParallelJava (DPJ) for a type-safe subset of C++. We chose the DPJannotations because they give the strongest safety guarantees ofany existing concurrency-checking approach we know of, staticor dynamic, and it is also the most expressive static checkingsystem we know of that gives strong safety guarantees. Thisexpressiveness, however, makes manual annotation difficult andtedious, which motivates the need for automatic inference, butit also makes the inference problem very challenging: the codemay use region polymorphism, imperative updates with complexaliasing, arbitrary recursion, hierarchical region specifications,and wildcard elements to describe potentially infinite sets ofregions. We express the inference as a constraint satisfactionproblem and develop, implement, and evaluate an algorithm forsolving it. The region and effect annotations inferred by thealgorithm constitute a checkable proof of safe parallelism, and itcan be recorded both for documentation and for fast and modularsafety checking.
منابع مشابه
Program Analysis with Flow-Effect Types
This paper develops a flow effect type inference system for higherorder programming languages. Flow effect types are a novel form of type that combines concepts of type constraint systems and type effect systems. The resulting type system achieves a high level of precision in comparison with existing type systems, by cutting closer to the operational behavior of programs in the analysis. The ma...
متن کاملProcrustean statistical inference of deformations
A two step method has been devised for the statistical inference of deformation changes. In the first step of this method and based on Procrustes analysis of deformation tensors, the significance of the change in a time or space series of deformation tensors is statistically analyzed. In the second step significant change(s) in deformations are localized. In other words, they are assigned to ce...
متن کاملFormal Type Soundness for Cyclone’s Region System
Cyclone is a polymorphic, type-safe programming language derived from C. The primarydesign goals of Cyclone are to let programmers control data representations and memory man-agement without sacrificing type-safety. In this paper, we focus on the region-based memorymanagement of Cyclone and its static typing discipline. The design incorporates several advance-ments, including su...
متن کاملA Comparative Study in Relation to the Translation of the Linguistic Humor
Mark Twain made use of repetition and parallelism as two comedic literary devices to bring comic effect to the readers. Linguistic devices of humor, repetition and parallelism seemed to create many difficulties in the translation of literary texts. The present study applied Delabatista‟s strategies for translating wordplays such as repetition and parallelism in the translation of humorous texts...
متن کاملCutaneous granular cell tumor: case report
Background: Granular cell tumor (Abrikossoff’s tumor) is a rare and slow-growing tumor of the soft tissue. Originated from the Schwann cells, it is often a benign tumor, but it can be malignant in 1-3% of the cases. Malignant cases can cause significant morbidity and mortality. It may develop in many anatomic locations, especially in the head and neck region, and also in skin and subcutaneous t...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2015